<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>组织管理</title>
<meta name="decorator" content="default" />
<script type="text/javascript" src="${ctxStatic}/modules/sys/department.js"></script>
</head>
<body>

	<table id="grid"></table>
	<div id="toolbar">
		<%-- <shiro:hasPermission name="sys:dept:edit"> --%>
		<table cellspacing="0" cellpadding="0">
			<tr>
				<td><a href="javascript:void(0)" class="easyui-linkbutton" plain="true" iconcls="icon-add" onclick="sys.dept.showForm()">添加</a></td>
				<td><div class="datagrid-btn-separator"></div></td>
				<td><a href="javascript:void(0)" class="easyui-linkbutton" plain="true" iconcls="icon-edit" onclick="sys.dept.showEditForm()">修改</a></td>
				<td><div class="datagrid-btn-separator"></div></td>
				<td><a href="javascript:void(0)" class="easyui-linkbutton" plain="true" iconcls="icon-remove" onclick="sys.dept.remove()">删除</a></td>
			</tr>
		</table>
		<%-- </shiro:hasPermission> --%>
	</div>

	<div id="fmDlg" class="easyui-dialog" title="组织信息" modal="true" width="500" height="320" buttons="#dlg-buttons" closed="true" >
		<form id="fm" style="padding: 15px;">
			<input type="hidden" name="id" id="id" />
			<table>
				<tr height="30">
					<td width="60" align="right">组织名称</td>
					<td><input class="easyui-textbox" required="true" style="width:150px;" id="name" name="name" /></td>
					<td width="60" align="right">组织编码</td>
					<td><input class="easyui-textbox" required="true" style="width: 150px;" id="code" name="code" /></td>
				</tr>
				<tr height="30">
					<td align="right">组织类型</td>
					<td><input class="easyui-combobox" style="width: 150px;" id="type" name="type" editable=false /></td>
					<td align="right">上级组织</td>
					<td><input class="easyui-combotree" style="width: 150px;" id="parentId" name="parentId" /></td>
				</tr>
				<tr height="30">
					<td align="right">派发部门</td>
					<td><input class="easyui-combobox" style="width: 150px;" id="isDistribute" name="isDistribute" editable=false /></td>
					<td align="right">审核部门</td>
					<td><input class="easyui-combobox" style="width: 150px;" id="isAudit" name="isAudit" editable=false /></td>
				</tr>
				<tr height="30">
					<td align="right">设施</td>
					<td><input class="easyui-textbox" style="width: 150px;" id="isFacility" name="isFacility" editable=false /></td>
					<td align="right">联系方式</td>
					<td><input class="easyui-textbox" style="width: 150px;" id="phone" name="phone" /></td>
				</tr>
				<tr height="30">
					<td align="right">邮箱</td>
					<td><input class="easyui-textbox" style="width: 150px;" id="email" name="email" /></td>
					<td align="right">序号</td>
					<td><input class="easyui-numberspinner" min="1" style="width: 150px;" id="sort" name="sort" /></td>
				</tr>
				<tr height="50">
					<td align="right">详细地址</td>
					<td colspan="3"><input class="easyui-textbox" multiline="true" style="width: 365px; height: 40px;" id="address" name="address" /></td>
				</tr>
			</table>
		</form>
	</div>
	<div id="dlg-buttons">
		<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-ok" onclick="sys.dept.saveOrupdate()">确定</a>
		<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-cancel" onclick="$('#fmDlg').dialog('close')">取消</a> 
	</div>

</body>
</html>